package com.hxl.access.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hxl.access.repository.UserRepository;
import com.hxl.access.entity.User;
import com.hxl.access.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>description</p>
 *
 * @author By: zhangchunyang
 * Package com.yang.transformutils.service.impl
 */
@Service
@DS("db2")
public class UserServiceImpl extends ServiceImpl<UserRepository, User> implements UserService {

    @Override
    public List<User> findUserAll() {
        return this.list();
    }

    @Override
    public User getUserById(Integer id) {
        return this.getById(id);
    }
}
